package com.ys.entity.logistics;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TL_CustomsDeclaration", catalog="Id")
public class TlCustomsDeclaration extends BaseEntity<TlCustomsDeclaration> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="EffectStock", nameJava="effectStock", typeDataBase="tinyint")
	private Integer effectStock;
	@YsField(nameDataBase="CreateChangeId", nameJava="createChangeId", typeDataBase="bigint")
	private Long createChangeId;
	@YsField(nameDataBase="PreInputCode", nameJava="preInputCode", typeDataBase="varchar")
	private String preInputCode;
	@YsField(nameDataBase="CustomsCode", nameJava="customsCode", typeDataBase="varchar")
	private String customsCode;
	@YsField(nameDataBase="CustomsInfo", nameJava="customsInfo", typeDataBase="varchar")
	private String customsInfo;
	@YsField(nameDataBase="DomesticShipper", nameJava="domesticShipper", typeDataBase="varchar")
	private String domesticShipper;
	@YsField(nameDataBase="AbroadShipper", nameJava="abroadShipper", typeDataBase="varchar")
	private String abroadShipper;
	@YsField(nameDataBase="ProductionSales", nameJava="productionSales", typeDataBase="varchar")
	private String productionSales;
	@YsField(nameDataBase="ContractProtocolNo", nameJava="contractProtocolNo", typeDataBase="varchar")
	private String contractProtocolNo;
	@YsField(nameDataBase="ExitCustoms", nameJava="exitCustoms", typeDataBase="varchar")
	private String exitCustoms;
	@YsField(nameDataBase="ExportDay", nameJava="exportDay", typeDataBase="char")
	private String exportDay;
	@YsField(nameDataBase="DeclareDay", nameJava="declareDay", typeDataBase="char")
	private String declareDay;
	@YsField(nameDataBase="FilingsCode", nameJava="filingsCode", typeDataBase="varchar")
	private String filingsCode;
	@YsField(nameDataBase="TransportMode", nameJava="transportMode", typeDataBase="varchar")
	private String transportMode;
	@YsField(nameDataBase="TransportToolsName", nameJava="transportToolsName", typeDataBase="varchar")
	private String transportToolsName;
	@YsField(nameDataBase="TransportNo", nameJava="transportNo", typeDataBase="varchar")
	private String transportNo;
	@YsField(nameDataBase="SuperviseMode", nameJava="superviseMode", typeDataBase="varchar")
	private String superviseMode;
	@YsField(nameDataBase="TaxingAttribute", nameJava="taxingAttribute", typeDataBase="varchar")
	private String taxingAttribute;
	@YsField(nameDataBase="PermitNo", nameJava="permitNo", typeDataBase="varchar")
	private String permitNo;
	@YsField(nameDataBase="TradeCountry", nameJava="tradeCountry", typeDataBase="varchar")
	private String tradeCountry;
	@YsField(nameDataBase="ArriveCountry", nameJava="arriveCountry", typeDataBase="varchar")
	private String arriveCountry;
	@YsField(nameDataBase="PointArriveHarbor", nameJava="pointArriveHarbor", typeDataBase="varchar")
	private String pointArriveHarbor;
	@YsField(nameDataBase="LeaveCountryPort", nameJava="leaveCountryPort", typeDataBase="varchar")
	private String leaveCountryPort;
	@YsField(nameDataBase="PackType", nameJava="packType", typeDataBase="varchar")
	private String packType;
	@YsField(nameDataBase="PackagesNum", nameJava="packagesNum", typeDataBase="int")
	private Integer packagesNum;
	@YsField(nameDataBase="GrossWeight", nameJava="grossWeight", typeDataBase="decimal")
	private BigDecimal grossWeight;
	@YsField(nameDataBase="NetWeight", nameJava="netWeight", typeDataBase="decimal")
	private BigDecimal netWeight;
	@YsField(nameDataBase="DealMode", nameJava="dealMode", typeDataBase="varchar")
	private String dealMode;
	@YsField(nameDataBase="TransportAmount", nameJava="transportAmount", typeDataBase="decimal")
	private BigDecimal transportAmount;
	@YsField(nameDataBase="InsuredAmount", nameJava="insuredAmount", typeDataBase="decimal")
	private BigDecimal insuredAmount;
	@YsField(nameDataBase="SundryAmount", nameJava="sundryAmount", typeDataBase="decimal")
	private BigDecimal sundryAmount;
	@YsField(nameDataBase="AttachedCode", nameJava="attachedCode", typeDataBase="varchar")
	private String attachedCode;
	@YsField(nameDataBase="ShippingMark", nameJava="shippingMark", typeDataBase="varchar")
	private String shippingMark;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TlCustomsDeclaration setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TlCustomsDeclaration setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public Integer getEffectStock() {
		return effectStock;
	}
	public TlCustomsDeclaration setEffectStock(Integer effectStock) {
		this.effectStock = effectStock;
		return this;
	}
	public Long getCreateChangeId() {
		return createChangeId;
	}
	public TlCustomsDeclaration setCreateChangeId(Long createChangeId) {
		this.createChangeId = createChangeId;
		return this;
	}
	public String getPreInputCode() {
		return preInputCode;
	}
	public TlCustomsDeclaration setPreInputCode(String preInputCode) {
		this.preInputCode = preInputCode;
		return this;
	}
	public String getCustomsCode() {
		return customsCode;
	}
	public TlCustomsDeclaration setCustomsCode(String customsCode) {
		this.customsCode = customsCode;
		return this;
	}
	public String getCustomsInfo() {
		return customsInfo;
	}
	public TlCustomsDeclaration setCustomsInfo(String customsInfo) {
		this.customsInfo = customsInfo;
		return this;
	}
	public String getDomesticShipper() {
		return domesticShipper;
	}
	public TlCustomsDeclaration setDomesticShipper(String domesticShipper) {
		this.domesticShipper = domesticShipper;
		return this;
	}
	public String getAbroadShipper() {
		return abroadShipper;
	}
	public TlCustomsDeclaration setAbroadShipper(String abroadShipper) {
		this.abroadShipper = abroadShipper;
		return this;
	}
	public String getProductionSales() {
		return productionSales;
	}
	public TlCustomsDeclaration setProductionSales(String productionSales) {
		this.productionSales = productionSales;
		return this;
	}
	public String getContractProtocolNo() {
		return contractProtocolNo;
	}
	public TlCustomsDeclaration setContractProtocolNo(String contractProtocolNo) {
		this.contractProtocolNo = contractProtocolNo;
		return this;
	}
	public String getExitCustoms() {
		return exitCustoms;
	}
	public TlCustomsDeclaration setExitCustoms(String exitCustoms) {
		this.exitCustoms = exitCustoms;
		return this;
	}
	public String getExportDay() {
		return exportDay;
	}
	public TlCustomsDeclaration setExportDay(String exportDay) {
		this.exportDay = exportDay;
		return this;
	}
	public String getDeclareDay() {
		return declareDay;
	}
	public TlCustomsDeclaration setDeclareDay(String declareDay) {
		this.declareDay = declareDay;
		return this;
	}
	public String getFilingsCode() {
		return filingsCode;
	}
	public TlCustomsDeclaration setFilingsCode(String filingsCode) {
		this.filingsCode = filingsCode;
		return this;
	}
	public String getTransportMode() {
		return transportMode;
	}
	public TlCustomsDeclaration setTransportMode(String transportMode) {
		this.transportMode = transportMode;
		return this;
	}
	public String getTransportToolsName() {
		return transportToolsName;
	}
	public TlCustomsDeclaration setTransportToolsName(String transportToolsName) {
		this.transportToolsName = transportToolsName;
		return this;
	}
	public String getTransportNo() {
		return transportNo;
	}
	public TlCustomsDeclaration setTransportNo(String transportNo) {
		this.transportNo = transportNo;
		return this;
	}
	public String getSuperviseMode() {
		return superviseMode;
	}
	public TlCustomsDeclaration setSuperviseMode(String superviseMode) {
		this.superviseMode = superviseMode;
		return this;
	}
	public String getTaxingAttribute() {
		return taxingAttribute;
	}
	public TlCustomsDeclaration setTaxingAttribute(String taxingAttribute) {
		this.taxingAttribute = taxingAttribute;
		return this;
	}
	public String getPermitNo() {
		return permitNo;
	}
	public TlCustomsDeclaration setPermitNo(String permitNo) {
		this.permitNo = permitNo;
		return this;
	}
	public String getTradeCountry() {
		return tradeCountry;
	}
	public TlCustomsDeclaration setTradeCountry(String tradeCountry) {
		this.tradeCountry = tradeCountry;
		return this;
	}
	public String getArriveCountry() {
		return arriveCountry;
	}
	public TlCustomsDeclaration setArriveCountry(String arriveCountry) {
		this.arriveCountry = arriveCountry;
		return this;
	}
	public String getPointArriveHarbor() {
		return pointArriveHarbor;
	}
	public TlCustomsDeclaration setPointArriveHarbor(String pointArriveHarbor) {
		this.pointArriveHarbor = pointArriveHarbor;
		return this;
	}
	public String getLeaveCountryPort() {
		return leaveCountryPort;
	}
	public TlCustomsDeclaration setLeaveCountryPort(String leaveCountryPort) {
		this.leaveCountryPort = leaveCountryPort;
		return this;
	}
	public String getPackType() {
		return packType;
	}
	public TlCustomsDeclaration setPackType(String packType) {
		this.packType = packType;
		return this;
	}
	public Integer getPackagesNum() {
		return packagesNum;
	}
	public TlCustomsDeclaration setPackagesNum(Integer packagesNum) {
		this.packagesNum = packagesNum;
		return this;
	}
	public BigDecimal getGrossWeight() {
		return grossWeight;
	}
	public TlCustomsDeclaration setGrossWeight(BigDecimal grossWeight) {
		this.grossWeight = grossWeight;
		return this;
	}
	public BigDecimal getNetWeight() {
		return netWeight;
	}
	public TlCustomsDeclaration setNetWeight(BigDecimal netWeight) {
		this.netWeight = netWeight;
		return this;
	}
	public String getDealMode() {
		return dealMode;
	}
	public TlCustomsDeclaration setDealMode(String dealMode) {
		this.dealMode = dealMode;
		return this;
	}
	public BigDecimal getTransportAmount() {
		return transportAmount;
	}
	public TlCustomsDeclaration setTransportAmount(BigDecimal transportAmount) {
		this.transportAmount = transportAmount;
		return this;
	}
	public BigDecimal getInsuredAmount() {
		return insuredAmount;
	}
	public TlCustomsDeclaration setInsuredAmount(BigDecimal insuredAmount) {
		this.insuredAmount = insuredAmount;
		return this;
	}
	public BigDecimal getSundryAmount() {
		return sundryAmount;
	}
	public TlCustomsDeclaration setSundryAmount(BigDecimal sundryAmount) {
		this.sundryAmount = sundryAmount;
		return this;
	}
	public String getAttachedCode() {
		return attachedCode;
	}
	public TlCustomsDeclaration setAttachedCode(String attachedCode) {
		this.attachedCode = attachedCode;
		return this;
	}
	public String getShippingMark() {
		return shippingMark;
	}
	public TlCustomsDeclaration setShippingMark(String shippingMark) {
		this.shippingMark = shippingMark;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TlCustomsDeclaration setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TlCustomsDeclaration setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TlCustomsDeclaration setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TlCustomsDeclaration tlCustomsDeclaration(
		String bid,
		Integer effectStock,
		Long createChangeId,
		String preInputCode,
		String customsCode,
		String customsInfo,
		String domesticShipper,
		String abroadShipper,
		String productionSales,
		String contractProtocolNo,
		String exitCustoms,
		String exportDay,
		String declareDay,
		String filingsCode,
		String transportMode,
		String transportToolsName,
		String transportNo,
		String superviseMode,
		String taxingAttribute,
		String permitNo,
		String tradeCountry,
		String arriveCountry,
		String pointArriveHarbor,
		String leaveCountryPort,
		String packType,
		Integer packagesNum,
		BigDecimal grossWeight,
		BigDecimal netWeight,
		String dealMode,
		BigDecimal transportAmount,
		BigDecimal insuredAmount,
		BigDecimal sundryAmount,
		String attachedCode,
		String shippingMark,
		Integer status
			) {
		TlCustomsDeclaration entity = new TlCustomsDeclaration();
		entity.setBid(bid);
		entity.setEffectStock(effectStock);
		entity.setCreateChangeId(createChangeId);
		entity.setPreInputCode(preInputCode);
		entity.setCustomsCode(customsCode);
		entity.setCustomsInfo(customsInfo);
		entity.setDomesticShipper(domesticShipper);
		entity.setAbroadShipper(abroadShipper);
		entity.setProductionSales(productionSales);
		entity.setContractProtocolNo(contractProtocolNo);
		entity.setExitCustoms(exitCustoms);
		entity.setExportDay(exportDay);
		entity.setDeclareDay(declareDay);
		entity.setFilingsCode(filingsCode);
		entity.setTransportMode(transportMode);
		entity.setTransportToolsName(transportToolsName);
		entity.setTransportNo(transportNo);
		entity.setSuperviseMode(superviseMode);
		entity.setTaxingAttribute(taxingAttribute);
		entity.setPermitNo(permitNo);
		entity.setTradeCountry(tradeCountry);
		entity.setArriveCountry(arriveCountry);
		entity.setPointArriveHarbor(pointArriveHarbor);
		entity.setLeaveCountryPort(leaveCountryPort);
		entity.setPackType(packType);
		entity.setPackagesNum(packagesNum);
		entity.setGrossWeight(grossWeight);
		entity.setNetWeight(netWeight);
		entity.setDealMode(dealMode);
		entity.setTransportAmount(transportAmount);
		entity.setInsuredAmount(insuredAmount);
		entity.setSundryAmount(sundryAmount);
		entity.setAttachedCode(attachedCode);
		entity.setShippingMark(shippingMark);
		entity.setStatus(status);
		return entity;
	}
}